﻿namespace Rialternative.CodeGenerators
{
    using Microsoft.ServiceModel.DomainServices.Tools;
    using Microsoft.ServiceModel.DomainServices.Tools.TextTemplate;
    using Microsoft.ServiceModel.DomainServices.Tools.TextTemplate.CSharpGenerators;

    /// <summary>
    /// Rialternative C# code generator for the DomainService proxies.
    /// </summary>
    [DomainServiceClientCodeGenerator(typeof(CodeGenerator), "C#")]
    public class CodeGenerator : CSharpClientCodeGenerator
    {
        /// <summary>
        /// Gets the C# DomainContext generator.
        /// </summary>
        /// <value></value>
        protected override DomainContextGenerator DomainContextGenerator
        {
            get
            {
                return new AuthorizationCodeGenerator();
            }
        }
    }
}
